import request from '@/utils/request'

export const getList = params => {
    return request({
        url: '/SeriesRAPI/Equipment/GetList',
        method: 'get',
        params: params
    })
}

export const save = data => {
    return request({
        url: '/SeriesRAPI/Equipment/Add',
        method: 'post',
        data
    })
}

export const getEquipmentById = id => {
    return request({
        url: `/SeriesRAPI/Equipment/${id}`,
        method: 'get',
    })
}

export const remove = data => {
    return request({
        url: `/SeriesRAPI/Equipment/Remove`,
        method: 'post',
        data
    })
}